package org.nlp2rdf.navigator.client.common;

import java.util.List;

/**
 * @author Sebastian Hellmann <hellmann@informatik.uni-leipzig.de>
 * 
 *         DTO
 * 
 */
@SuppressWarnings("serial")
public class ClassificationResultDTO extends DTO {
	private List<ExampleDTO> retrievedExamples;

	@Override
	public String toString() {
		return super.toString() + "Total Number: " + retrievedExamples.size() + "\n" + "First of ("
				+ retrievedExamples.size() + ") "
				+ ((!retrievedExamples.isEmpty()) ? retrievedExamples.get(0) : "empty");
	}

	public String toFullString() {
		StringBuffer ret = new StringBuffer(toString());
		for (ExampleDTO s : retrievedExamples) {
			ret.append(s.toString());
		}
		return ret.toString();
	}
	
	public void remove(List<ExampleDTO> toRemove){
		for(ExampleDTO ex:toRemove){
			retrievedExamples.remove(ex);
		}
	}
	
	public List<ExampleDTO> getRetrievedExamples() {
		return retrievedExamples;
	}

	public void setRetrievedExamples(List<ExampleDTO> retrievedExamples) {
		this.retrievedExamples = retrievedExamples;
	}

}
